﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-BR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Espaçamento entre elementos</title>
<script>

var num = prompt("digite um numero tanto positivo quanto negativo","");
	function Absolute() {
	  var abs = num;
	  if(abs<0)
		return -abs;
	  else
		return abs;
	}

console.log(Absolute());



</script>

</head>

<body>



</body>

</html>

